package models.mappers;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import mobile.models.JPush;

public interface JPushMapper {

	@Insert("insert into jpush(jpush_id, user_id) values(#{jPushId}, #{userId})")
	void insert(JPush jpush);
	
	@Delete("delete from jpush where user_id = #{jPushId}")
	void del(JPush jpush);
	
	@Select("select * from jpush")
	List<JPush> queryAllPush();
}
